package day08;

/**
 * @author yt1105
 * @version 1.0
 */
//这个就是我们不能满足季节是固定的 所以这样的设计就不好 不能
    //我们就采取枚举类 即 把具体的对象一个一个的列举出来的类。
    //就称为枚举类
public class Season {
    public static void main(String[] args) {
        season spring = new season("春天","温暖");
        season autumn = new season("夏天","炎热");
        season summer = new season("秋天","凉爽");
        season winter = new season("冬天","寒冷");
    }
}

class season{
    private String name;
    private String desc;//描述的意思

    public season(String name, String desc) {
        this.name = name;
        this.desc = desc;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
